package com.cloud.user_info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.user_info.entity.SysApplyRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色和应用关联表
 *
 * @author yzj
 * @since 2022-08-11
 */
@Mapper
public interface SysApplyRoleMapper extends BaseMapper<SysApplyRole> {

    /**
     * 批量添加角色与应用关联信息
     *
     * @param applyRoleList
     * @return
     */
    public int batchRoleApply(List<SysApplyRole> applyRoleList);

    /**
     * 删除与角色和应用关联信息
     *
     * @param roleId
     * @return
     */
    public int deleteRoleApplyByRoleId(@Param("roleId") Long roleId);

}
